package com.example.mediatorpattern.entity;

/**
 * @author ash
 * @description
 * @create 2023/2/23  21:38:25
 * @className ConcreteColleague2
 * @verson 1.0.0
 */
public class ConcreteColleague2 extends Colleague{
    public ConcreteColleague2(Mediator mediator) {
        super(mediator);
    }


    public void sendMessage(String message){
        mediator.send(message,this);
    }

    public void notifyMessage(String message){
        System.out.println("同事2消息通知:" + message  );
    }
}
